/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.assignment2.question4.Shop.Impl;

/**
 *
 * @author Ziyaad
 */
public class Invoice {
    
    private long invNumber;
    private int quantity;

    /**
     * @return the invNumber
     */
    public long getInvNumber() {
        return invNumber;
    }

    /**
     * @param invNumber the invNumber to set
     */
    public void setInvNumber(long invNumber) {
        this.invNumber = invNumber;
    }

    /**
     * @return the quantity
     */
    public int getQuantity() {
        return quantity;
    }

    /**
     * @param quantity the quantity to set
     */
    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }
    
    public double calcTotal(Item item)
    {
        return item.getPrice() * quantity;
    }
    
}
